﻿<?php
error_reporting(E_ALL ^ E_NOTICE);

$conn=@mysqli_connect("localhost","root","root") or die("数据库链接失败".mysql_error());
mysqli_select_db($conn,"findbook") or die("数据库链接失败".mysql_error());
mysqli_query($conn,'set names utf8');
@extract($_POST);
@extract($_GET);
 
//设置时区
date_default_timezone_set('asia/shanghai');
define('SYS_ROOT', str_replace("\\", '/', dirname(__FILE__)));
define('File_ROOT', SYS_ROOT."/upload/");
define('IMG_ROOT', SYS_ROOT . "/upload/");

@extract($_POST);
@extract($_GET);
 
?>
